package club.chenlinghong.product.service.impl;

import club.chenlinghong.product.entity.ProductCatagory;
import club.chenlinghong.product.repository.ProductCatagoryRepository;
import club.chenlinghong.product.service.CatagoryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Description TODO
 * @Author chenlinghong
 * @Date 2019/6/18 16:47
 * @Version V1.0
 */
@Service
public class CatagoryServiceImpl implements CatagoryService {

    @Autowired
    private ProductCatagoryRepository productCatagoryRepository;

    @Override
    public List<ProductCatagory> findByCatagoryTypeIn(List<Integer> catagoryList) {
        return productCatagoryRepository.findByCatagoryTypeIn(catagoryList);
    }
}
